/*---------------------------------------------------------------------*/
/* --- STC MCU Limited ------------------------------------------------*/
/* --- STC 1T Series MCU Demo Programme -------------------------------*/
/* --- Mobile: (86)13922805190 ----------------------------------------*/
/* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/
/* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/
/* --- Web: www.STCMCU.com --------------------------------------------*/
/* --- Web: www.STCMCUDATA.com  ---------------------------------------*/
/* --- QQ:  800003751 -------------------------------------------------*/
/* ���Ҫ�ڳ�����ʹ�ô˴���,���ڳ�����ע��ʹ����STC�����ϼ�����            */
/*---------------------------------------------------------------------*/

#ifndef		__TASK_H
#define		__TASK_H

#include	"config.h"


typedef struct 
{
	u8 Run;               //����״̬��Run/Stop
	u16 TIMCount;         //��ʱ������
	u16 TRITime;          //���ؼ�����
	void (*TaskHook) (void); //������
} TASK_COMPONENTS;       



void ConfigKeys();
void ConfigPCA();
void Key1(void) __interrupt INT2_VECTOR;
void Key2(void) __interrupt INT3_VECTOR;
void PCA_INT(void) __interrupt PCA_VECTOR;

#endif
